package com.fz.Mapper;

import com.fz.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2017/6/17.
 */
public interface StudentMapper {

    //动态sql语句
    public List<Student> query();
    public List<Student> query(Map<String,Object> map);
    public List<Student> querys(Map<String,Object> map);
    public List<Student> queryss(Map<String,Object> map);
    public int update(Map<String,Object> map);

    public  int delete(Map<String,Object> map);

    //调用存储过程
    public  int del(int id);

    public int  inser(Map<String,Object> map);

    public List<Student> show();

    public  void  showstudent(Map<String,Object> map);

    @Select("select  * from student where id = ${id}")
    public List<Student> intt(@Param("id") int id);


}
